package com.example.nbaplayerssb.service.impl;


import com.example.nbaplayerssb.mapper.PlayersMapper;
import com.example.nbaplayerssb.pojo.Clubs;
import com.example.nbaplayerssb.pojo.Players;
import com.example.nbaplayerssb.service.PlayersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PlayersServiceImpl implements PlayersService {

    @Autowired
    private PlayersMapper playersMapper;

    @Override
    public List<Players> getList(String pname, Integer cid) {
        return playersMapper.getList(pname,cid);
    }

    @Override
    public List<Clubs> getClubs(Clubs clubs) {
        return playersMapper.getClubs(clubs);
    }

    @Override
    public Integer getAdd(Players players) {
        return playersMapper.getAdd(players);
    }

    @Override
    public Integer getDelete(Integer id) {
        return playersMapper.getDelete(id);
    }

    @Override
    public Integer update(Players players) {
        return playersMapper.update(players);
    }

    @Override
    public Players getById(Integer id) {
        return playersMapper.getById(id);
    }
}
